<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			*{
				margin: 0px;
				padding: 0px;
			}
			.box{
				width:472px;
				margin: 100px auto;
				position: relative;
			}
			#d2{
				position: absolute;
				top:132px;
				left:150px ;
			}
			#d1{
				transition: all 6s;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<img src="zhuanpan.png" id="d1" />
			<img src="wheel_center.png" id="d2" onclick="chouJian()" />
		</div>
		<script>
			var arr=[3600,3690,3780,3870,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,]
			var index=Math.floor(Math.random()*arr.length);
			var chouJian=function(){
				d1.style.transform="rotate("+arr[index]+"deg)"
			}
		</script>
	</body>
</html>
